# Contributor: omni <omni+alpine@hack.org>
# Maintainer: omni <omni+alpine@hack.org>
pkgname=zulip-term
_pkgname=zulip-terminal
pkgver=0.6.0
pkgrel=2
pkgdesc="official terminal client for Zulip"
url="https://github.com/zulip/zulip-terminal"
arch="noarch"
license="Apache-2.0"
depends="py3-urwid py3-beautifulsoup4 py3-lxml py3-typing-extensions \
	py3-dateutil py3-tzlocal py3-urwid_readline py3-zulip"
makedepends="py3-setuptools"
subpackages="$pkgname-doc"
options="!check" # legacy dependencies
source="$pkgname-$pkgver.tar.gz::https://github.com/zulip/zulip-terminal/archive/$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"

	install -Dm0644 -t "$pkgdir"/usr/share/doc/"$pkgname" \
		docs/getting-started.md \
		docs/FAQ.md
	install -Dm0644 LICENSE -t "$pkgdir"/usr/share/doc/"$pkgname"
}

sha512sums="df6b5d4364b42711e15d12519c89e301402bf921f61bdcd04bb445fe12c10de466c43f850785208b441bc0c95608d52f8da197716dd5ed80b483cd9aa14e21c3  zulip-term-0.6.0.tar.gz"
